package com.spic.system.api.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @author 290512
 * @create 2022-01-05 21:31
 */
public class DataScopeDTO implements Serializable
{
    /** id */
    private Long id;

    /** 角色ID */
    private Long roleId;

    /** 菜单ID */
    private Long meunId;

    /** 菜单路径 */
    private String meunPath;

    /** 权限值 */
    private Integer datascope;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    public Long getRoleId()
    {
        return roleId;
    }
    public void setMeunId(Long meunId)
    {
        this.meunId = meunId;
    }

    public Long getMeunId()
    {
        return meunId;
    }
    public void setMeunPath(String meunPath)
    {
        this.meunPath = meunPath;
    }

    public String getMeunPath()
    {
        return meunPath;
    }
    public void setDatascope(Integer datascope)
    {
        this.datascope = datascope;
    }

    public Integer getDatascope()
    {
        return datascope;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("roleId", getRoleId())
                .append("meunId", getMeunId())
                .append("meunPath", getMeunPath())
                .append("datascope", getDatascope())
                .toString();
    }
}
